Solve Panel

The Solve panel is used to configure and then run an optimization. This topic describes the options available in the Equations tab of the Solve panel. If you need more information about Solve before you begin, see Solve Overview.

Panel buttons (top-right)

Auto-run Settings

The Auto-run drop-down list offers the following options:

  • Autorun on all changes: Run the Solve algorithm automatically every time you make a change in a sheet. For example, when prompted by a change in any cell, change of a slicer or parameter, or an addition of data.
  • Autorun on Slicers & Parameters (default): Run the Solve algorithm automatically every time you change a slicer or parameter value.
  • Manual Execution: Only run the Solve algorithm when Apply or Apply and close is manually clicked.

Further Options

Name

Description

Delete

Delete the current optimization and close the Solve panel.

Reset

Reset to the last saved settings and leave the Solve panel open.

Apply

Run the Solve algorithm and leave the Solve panel open.

Apply and close

Run the Solve algorithm and close the Solve panel.

Equations tab (main)

Optimization Objective

The objective function (red) states the value that you want to optimize, and how you want to optimize it. This can be by finding a maximum value for it, minimizing it, or finding a particular value for it. These options also specify which variables the Solver can change in order to optimize your objective value.

  1. From the "I want to" field, first select the option that describes how Solve should try to optimize the value:
    • Select Maximize to find the largest possible value.
    • Select Minimize to find the smallest possible value.
    • Select Set the value of and specify the exact value that you want to find.
  2. In the next field, you need to set up the objective cell that you want to optimize, either:
    • Click your cursor in the field and select the cell that contains your objective value in your sheet.
    • Type the cell reference into your cell manually. Note that, if you type your reference, the cell will be highlighted when you click away to indicate your selection.
  3. From the "By changing the values in these cells" field, select the cells whose values will be changed to achieve the objective. These are the decision variables.

    Note: To have an effect, the decision variable cells must be related to the objective cells in some way, or to the cell reference by at least one constraint.

"Quick" Constraints

The Quick Constraint checkboxes (green) describe constraints that apply across all of the decision variables defined in your "By changing the values in these cells" fields.

Note: Quick constraints and constraints may conflict! If a quick constraint defined in the Optimization Objective panel and an explicit constraint defined in the Constraints panel conflict (for example, where "All Values Are Greater than Zero" is selected but one of the cells also has a <= -3 constraint), the explicit constraint takes precedence over the quick constraint. Where the constraints are not in conflict, they both apply.

Checkbox

Description

All Values Are Greater Than Zero

The results will only include values that are above zero.

This option has the same effect as defining a constraint where the value must be greater than zero.

Present Outcomes As Whole Numbers

The results will only include values that are whole numbers (after the optimization, all values in the decision variables cells are integers and not doubles or floats).

This option has the same effect as defining a special constraint where the value of these cells must be the special type "variable is a whole number".

Constraints

Constraints describe the limitations on the resources available.

All Constraints

Shown on the preceding screen shot with a blue arrow.

Name

Description

Clear constraints

Click Clear Constraints to remove all constraints.

Add (+)

Click the + symbol to add a new constraint.

Individual Constraints

Shown on the preceding screen shot with a yellow box, and expanded below.

  • Click the Name (red arrow, above) to make the name editable, and provide a meaningful replacement name for your constraint.
  • Note: The name of the constraint will attempt to default to a meaningful value, matching the name of the selected column or row in the spreadsheet and suffixing an underscore "_".

  • The Referenced Cells (green arrow) field in each constraint represents the resource that is limited by the constraint you are describing. For example, one or more cells that describe some stock that can never have a value of less than 500 units. Tip: If your constraint applies to a number of cells, you should select the whole cell range, rather than creating a different constraint for each cell.
  • The Operator (blue arrow) sits between the referenced cell and the limiting value. For more information about relational and special constraints, see Constraints Details and Examples (below).
  • The Limiting value (yellow arrow) is the value the referenced cell is compared to, or the name of the "special" comparison.
  • The Delete Constraint (purple) deletes a single constraint.

Note: The more constraints you add to your problem, the longer it might take to solve.

Note: Integer constraints have many important applications, but the presence of even one such constraint in a Solve model makes the problem an integer programming problem. Integer programming problems may be much more difficult to solve than a similar problem without an integer constraint.

Constraints Details and Examples

There can be two types of operator:

  • Relational operators. Compares the value in a cell to a number. For example, the result must be less than or equal to (<=) 100.
  • Special constraints. Makes "special" (out of the box) constraints available for selection. For example, the result must be a whole number.

Note: Quick constraints and constraints may conflict! If a quick constraint defined in the Optimization Objective panel and an explicit constraint defined in the Constraints panel conflict (for example, where "All Values Are Greater than Zero" is selected but one of the cells also has a <= -3 constraint), the explicit constraint takes precedence over the quick constraint. Where the constraints are not in conflict, they both apply.

Relational Operator

Where the relational operator (blue, above) compares the value in a cell to a number or another cell (yellow), it can be one of:

  • >= greater than or equal to
  • <= less than or equal to
  • = equal to

For example, you might select that your cell value must always be less than 100. Where one of these operators is selected, the value field contains a number or a cell reference.

Tip: A complex constraint such as 0 <= a16 <= 1000 must be expressed as two separate constraints:

  • a16 >= 0
  • a16 <= 1000

Special Constraints

Where the operator is "special" the constraint is selected from a drop-down list of options:

  • Variable is a Whole Number. The value must be an integer and not a float or double.
  • Variable is a Binary Number. This is a boolean constraint. The value must be 0 or 1, representing false and true respectively.
  • All Variables are Different. The range must include only unique variables.

Advanced tab (main)

The advanced options are used to control how Solve "solves" your problems. You can use these settings to specify and constrain the particular method or solver used when optimizing the objective value. For more information, see Advanced Settings.

Other Topics